package com.yanqu.road.logic.bussiness.zhaoshang;

import com.yanqu.road.entity.config.zhaoshang.ZsProjectInfo;
import com.yanqu.road.entity.zhaoshang.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * 城郊-招商
 */
public class ZhaoShangBussiness {

    public static Map<Integer, ZsProjectInfo>  getZsProjectInfo(){
        return DaoHelper.getZsConfigDaoImpl().getZsProjectInfo();
    }

    public static Map<Integer, ZsUserData> getUserZsData(long userId) {
        return DaoHelper.getZsUserDataDaoImpl().getUserZsData(userId);
    }

    public static boolean addZsUserData(ZsUserData zsUserData) {
        return DaoHelper.getZsUserDataDaoImpl().add(zsUserData);
    }

    public static boolean updateZsUserData(ZsUserData zsUserData) {
        return DaoHelper.getZsUserDataDaoImpl().update(zsUserData);
    }

    public static Map<Long, List<ZsWarReport>> getZsWarReportMap(long userId) {
        return DaoHelper.getZsWarReportDaoImpl().getZsWarReportMap(userId);
    }

    public static boolean addZsWarReport(ZsWarReport zsWarReport) {
        return DaoHelper.getZsWarReportDaoImpl().add(zsWarReport);
    }

    public static boolean updateZsWarReport(ZsWarReport zsWarReport) {
        return DaoHelper.getZsWarReportDaoImpl().update(zsWarReport);
    }

    public static Map<Long, List<ZsWarReport>> getCrossZsWarReportMap(int beginTime) {
        return DaoHelper.getCrossZsWarReportDaoImpl().getZsWarReportMap(beginTime);
    }

    public static boolean addCrossZsWarReport(ZsWarReport zsWarReport) {
        return DaoHelper.getCrossZsWarReportDaoImpl().add(zsWarReport);
    }

    public static boolean updateCrossZsWarReport(ZsWarReport zsWarReport) {
        return DaoHelper.getCrossZsWarReportDaoImpl().update(zsWarReport);
    }

    public static Map<Integer, Map<Integer, ZsTopOfRank>> getWeekTopRankMap(int weekId) {
        return DaoHelper.getZsTopRankDaoImpl().getWeekTopRankMap(weekId);
    }

    public static boolean addWeekTopRank(ZsTopOfRank zsTopOfRank) {
        return DaoHelper.getZsTopRankDaoImpl().add(zsTopOfRank);
    }

    public static long getMaxProjectId() {
        return DaoHelper.getZsProjectDaoImpl().getMaxProjectId();
    }

    public static Map<Long, Map<Long, ZsProject>> getZsAllProjectMap(int beginTime) {
        return DaoHelper.getZsProjectDaoImpl().getZsAllProjectMap(beginTime);
    }

    public static Map<Long, List<ZsProjectNotice>> getZsAllProjectNoticeMap(int beginTime) {
        return DaoHelper.getZsProjectNoticeDaoImpl().getZsAllProjectNoticeMap(beginTime);
    }

    public static boolean addZsProject(ZsProject zsProject) {
        return DaoHelper.getZsProjectDaoImpl().add(zsProject);
    }

    public static boolean updateZsProject(ZsProject zsProject) {
        return DaoHelper.getZsProjectDaoImpl().update(zsProject);
    }

    public static boolean addZsProjectNotice(ZsProjectNotice zsProjectNotice) {
        return DaoHelper.getZsProjectNoticeDaoImpl().add(zsProjectNotice);
    }

    public static Map<Long, ZsUserCoolDown> getZsUserCoolDownMap(){
        return DaoHelper.getZsUserCoolDownDaoImpl().getZsUserCoolDownMap();
    }

    public static boolean addZsUserCoolDown(ZsUserCoolDown zsUserCoolDown){
        return DaoHelper.getZsUserCoolDownDaoImpl().add(zsUserCoolDown);
    }

    public static boolean updateZsUserCoolDown(ZsUserCoolDown zsUserCoolDown){
        return DaoHelper.getZsUserCoolDownDaoImpl().update(zsUserCoolDown);
    }

    public static Map<Long, List<ZsProjectReward>> getZsAllRewardMap(int endTime){
        return DaoHelper.getZsProjectRewardDaoImpl().getZsWarReportMap(endTime);
    }

    public static boolean addZsProjectReward(ZsProjectReward zsProjectReward){
        return DaoHelper.getZsProjectRewardDaoImpl().add(zsProjectReward);
    }

    public static boolean updateZsProjectReward(ZsProjectReward zsProjectReward){
        return DaoHelper.getZsProjectRewardDaoImpl().update(zsProjectReward);
    }

    public static Map<Long,ZsRobTimes> getZsRobTimes(long userId) {
        return DaoHelper.getZsRobTimesDaoImpl().getZsRobTimes(userId);
    }

    public static boolean addZsRobTimes(ZsRobTimes data) {
        return DaoHelper.getZsRobTimesDaoImpl().add(data);
    }

    public static boolean updateZsRobTimes(ZsRobTimes data) {
        return DaoHelper.getZsRobTimesDaoImpl().update(data);
    }
}
